package com.buddy.syn.block._03;

public class MyThreadA extends Thread {
    private Task task;
    public MyThreadA(Task task){
        super();
        this.task = task;
    }

    public void run(){
        super.run();
        CommonUtils.beginTime1 = System.currentTimeMillis();
        task.doLongTimeTask();
        CommonUtils.endTime1 = System.currentTimeMillis();
    }
}
